﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cwtrock.dao.impl;
using cwtrock.model;

namespace cwtrock.service.impl
{
    class SysSolverServiceImpl
    {

        private SysSolverDaoImpl dao = new SysSolverDaoImpl();

        public void save(SysSolver currency)
        {
            dao.save(currency);
        }

        public void update(SysSolver currency)
        {
            dao.update(currency);
        }

        public SysSolver getSolvers(int id)
        {
            return dao.getSolver(id);
        }

        public void delete(int id)
        {
            dao.delSolver(id);

        }

        public List<SysSolver> findAll()
        {
            return dao.getAllSolvers();

        }
    }
}
